package com.dit.util;

import com.vaadin.data.validator.AbstractValidator;

public class PasswordValidator extends AbstractValidator<String> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public PasswordValidator() {
		super("Password value can not be empty");
	}

	@Override
	protected boolean isValidValue(String value) {
		if (value != null) {
			return false;
		}
		return true;
	}

	@Override
	public Class<String> getType() {
		return String.class;
	}

}